﻿using System;

namespace Red.Scripts.Project.Generator.Project
{
    public interface IProperty
    {
        bool IsSet { get; set; }
        string Name { get; set; }
        string Label { get; set; }

        object Object { get; }
        Type Type { get; }
    }

    public class Property<T> : IProperty
    {
        public bool IsSet { get; set; }
        public string Name { get; set; }
        public string Label { get; set; }
        public object Object => Value;
        public Type Type => typeof( T );
        
        public T Value { get; set; }
    }
}
